package com.wlyuan.open.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lijing
 * @description
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper = true)
public class OpenCarrierOnlineRelationSyncDTO implements Serializable {

    private static final long serialVersionUID = 1562993963546561566L;
    @ApiModelProperty(value = "公司名称")
    @NotBlank(message = "公司名称不能为空")
    private String name;

    @ApiModelProperty(value = "公司网站")
    private String url;

    @ApiModelProperty(value = "公司简称")
    private String abbr;

    @ApiModelProperty(value = "公司联系电话")
    private String contactMobile;

    @ApiModelProperty(value = "联系人")
    private String contactName;

    @ApiModelProperty(value = "邮箱")
    @JSONField(alternateNames = "email")
    private String contactEmail;

    @ApiModelProperty(value = "公司编号")
    private String code;

    @ApiModelProperty(value = "是否自动对账 0 是 1 否")
    private Integer autoBalance;

    @ApiModelProperty(value = "公司id")
    private Long companyId;

    @ApiModelProperty(value = "邀请时间")
    private LocalDateTime inviteTime;

    @ApiModelProperty(value = "承运方状态")
    private Integer status;

    private Long tenantId;

}
